package o;

import java.io.IOException;

public class dbo extends fuw {
    private fuw ˊ;
    private a ˋ;
    protected b ˏ;

    protected final class a extends fxn {
        final /* synthetic */ dbo ˎ;
        private long ॱ = 0;

        public a(dbo o_dbo, fxx o_fxx) {
            this.ˎ = o_dbo;
            super(o_fxx);
        }

        public void ˎ(fxi o_fxi, long j) throws IOException {
            super.ˎ(o_fxi, j);
            this.ॱ += j;
            if (this.ˎ.ˏ != null) {
                this.ˎ.ˏ.ˏ(this.ॱ, this.ˎ.contentLength());
            }
        }
    }

    public interface b {
        void ˏ(long j, long j2);
    }

    public dbo(fuw o_fuw, b bVar) {
        this.ˊ = o_fuw;
        this.ˏ = bVar;
    }

    public fup contentType() {
        return this.ˊ.contentType();
    }

    public long contentLength() throws IOException {
        return this.ˊ.contentLength();
    }

    public void writeTo(fxj o_fxj) throws IOException {
        this.ˋ = new a(this, o_fxj);
        fxj ˋ = fxr.ˋ(this.ˋ);
        this.ˊ.writeTo(ˋ);
        ˋ.flush();
    }
}
